package cn.xt.bean;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Orders {
	private long orders_id;
	private House house;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date dtime;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date firstday;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date lastday;
	private double price;
	private Users users;
	private Users fusers;
	private int zfzt;
	private String ordersimage;

	private Htype htype;
	private Ftype ftype;

	private int users_id;
	private int fdusers_id;

	private City city;

	public City getCity() {
		return city;
	}

	public void setCity(City city) {
		this.city = city;
	}

	public int getFdusers_id() {
		return fdusers_id;
	}

	public void setFdusers_id(int fdusers_id) {
		this.fdusers_id = fdusers_id;
	}



	public int getUsers_id() {
		return users_id;
	}

	public void setUsers_id(int users_id) {
		this.users_id = users_id;
	}

	public Ftype getFtype() {
		return ftype;
	}

	public void setFtype(Ftype ftype) {
		this.ftype = ftype;
	}

	public Htype getHtype() {
		return htype;
	}

	public void setHtype(Htype htype) {
		this.htype = htype;
	}

	public String getOrdersimage() {
		return ordersimage;
	}


	public void setOrdersimage(String ordersimage) {
		this.ordersimage = ordersimage;
	}


	public int getZfzt() {
		return zfzt;
	}


	public void setZfzt(int zfzt) {
		this.zfzt = zfzt;
	}


	public long getOrders_id() {
		return orders_id;
	}


	public void setOrders_id(long orders_id) {
		this.orders_id = orders_id;
	}


	public House getHouse() {
		return house;
	}


	public void setHouse(House house) {
		this.house = house;
	}


	public Date getDtime() {
		return dtime;
	}


	public void setDtime(Date dtime) {
		this.dtime = dtime;
	}
	public Date getFirstday() {
		return firstday;
	}


	public void setFirstday(Date firstday) {
		this.firstday = firstday;
	}


	public Date getLastday() {
		return lastday;
	}


	public void setLastday(Date lastday) {
		this.lastday = lastday;
	}


	public double getPrice() {
		return price;
	}


	public void setPrice(double price) {
		this.price = price;
	}


	public Users getUsers() {
		return users;
	}


	public void setUsers(Users users) {
		this.users = users;
	}


	public Users getFusers() {
		return fusers;
	}


	public void setFusers(Users fusers) {
		this.fusers = fusers;
	}


	public Orders() {
		super();
	}

	@Override
	public String toString() {
		return "Orders{" +
				"orders_id=" + orders_id +
				", house=" + house +
				", dtime=" + dtime +
				", firstday=" + firstday +
				", lastday=" + lastday +
				", price=" + price +
				", users=" + users +
				", fusers=" + fusers +
				", zfzt=" + zfzt +
				", ordersimage='" + ordersimage + '\'' +
				", htype=" + htype +
				", ftype=" + ftype +
				", users_id=" + users_id +
				", fdusers_id=" + fdusers_id +
				", city=" + city +
				'}';
	}
}
